package com.cloud.openfeign;


import com.cloud.constent.Constant;
import com.cloud.entity.CommonResult;
import com.cloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE",fallback = PaymentOpenFeignHystrix.class)
public interface PaymentOpenFeign {

    @RequestMapping(value = "/payment/select/{id}")
    public CommonResult<Payment> select(@PathVariable("id") Long id);
}
